package edu.sctu.xiangkun.day201505.day20150504.textdog;

/**
 * Created by user21 on 2015/5/4.
 */
public class DogThree {

 public static void main(String[] args){

    new DogOne().getString(new DogTwo() {

        public void getString1(String color) {
            System.out.println("color:" + color);
        }

        public void getString2(String size) {
            System.out.println("size:" + size);
        }

        public void getString3(String action) {
            System.out.println("action:" + action);
        }

    });

 }
}

